#modeltag({tagcode:"jxbrms_systemrole",term:"role_id=?",id:params[0]})
#include("/common/layout/bootstrap_form_layout.html")
#@layout()

#define title()
#(jxrb.message(actionName,"systemRoleMenu"))
#end

#define head()
<script>
  seajs.use(["jquery", "jx_msgbox_plus", "jx_check", "action_tree"], function ($, msgbox)
  {
    $("#b_submit").on("click", function () {
      if (!jxCheck.check()) {
        return false;
      } else {
        msgbox.confirm({url: "#(controllerKey)#(action)/"},
        function ()
        {
          msgbox.close();
          location.href = "#(controllerKey)" + $("#DICT_ID").val();
        },
                function ()
                {
                  if (msgbox.messageType !== 2)
                    location.href = "#(backurl)";
                });
      }

    });
    var action = '(action)';
    $("#b_return").on("click", function () {
      if (action == "added") {
        location.href = "#(backurl)";
      } else {
        location.href = "#(controllerKey)" + $("#DICT_ID").val();
      }
    })

  });
</script>
#end

#define bodyExt()
class="gray-bg"
#end

#define form()
#include("info.html")
#end

#define formAfter()
<center>
  #jx_button({value:"action.save",class:"btn btn-primary"})&nbsp;&nbsp;&nbsp;&nbsp;
  #jx_button({value:"action.return",id:"b_return",class:"btn btn-danger"})
</center>
#end
